package com.csun.dsms.model.domain;

import com.csun.dsms.comment.core.mybatis.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Data
@Table(name = "dsms_fee")
public class DsmsFee extends BaseEntity {

    /**
     * 服务公司ID
     */
    @Column(name = "unit_id")
    private Long unitId;

    /**
     * 服务公司名称
     */
    @Column(name = "unit_name")
    private String unitName;

    /**
     * 网格ID
     */
    @Column(name = "area_id")
    private Long areaId;

    /**
     * 网格名称
     */
    @Column(name = "area_name")
    private String areaName;

    /**
     * 平均分
     */
    private BigDecimal average;

    /**
     * 应付金额
     */
    private BigDecimal amount;

    /**
     * 结算月份
     */
    private String mount;

    /**
     * 付款状态 0-待付款 1-已付款
     */
    private Integer status;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 创建人ID
     */
    @Column(name = "creator_id")
    private Long creatorId;

    /**
     * 创建时间
     */
    @Column(name = "created_time")
    private Date createdTime;

    /**
     * 最近操作人
     */
    @Column(name = "last_operator")
    private String lastOperator;

    /**
     * 最后操作人ID
     */
    @Column(name = "last_operator_id")
    private Long lastOperatorId;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    @Transient
    private String nowTime;

}